if … else
if (condition) {
// code to execute if condition is true
} else {
// code to execute if condition is false
}
In an if statement, condition is a value or an expression that is used to determine which code block is executed, and the curly braces act as "begin" and "end" markers.